Remove gdk_char_* deprecated functions
authorJavier Jardón <jjardon@gnome.org>
Sat, 19 Jun 2010 21:08:35 +0000 (23:08 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sat, 19 Jun 2010 22:21:51 +0000 (00:21 +0200)
Remove gdk_char_width(), gdk_char_width_wc(), gdk_char_measure()
and gdk_char_height()

docs/reference/gdk/gdk3-sections.txt
docs/reference/gdk/tmpl/fonts.sgml
gdk/gdk.symbols
gdk/gdkfont.c
gdk/gdkfont.h

index c4ad2d5e49bfc15ee0e838aae085086b6138c9d0..607e4d72a87230a6fefc6f2f7cb37bd1abb41e42 100644 (file)
@@ -418,14 +418,10 @@ gdk_text_extents_wc
 gdk_string_width
 gdk_text_width
 gdk_text_width_wc
-gdk_char_width
-gdk_char_width_wc
 gdk_string_measure
 gdk_text_measure
-gdk_char_measure
 gdk_string_height
 gdk_text_height
-gdk_char_height
 
 <SUBSECTION>
 GdkWChar
index 1f68fb732dd5a042eb3f6b76a1ff2a6a05f74c06..cdae72e22ceea80ce2511f6b88a9bd4a8f1b01fb 100644 (file)
@@ -457,24 +457,6 @@ are currently:
 @Returns: 
 
 
-<!-- ##### FUNCTION gdk_char_width ##### -->
-<para>
-</para>
-
-@font: 
-@character: 
-@Returns: 
-
-
-<!-- ##### FUNCTION gdk_char_width_wc ##### -->
-<para>
-</para>
-
-@font: 
-@character: 
-@Returns: 
-
-
 <!-- ##### FUNCTION gdk_string_measure ##### -->
 <para>
 </para>
@@ -494,15 +476,6 @@ are currently:
 @Returns: 
 
 
-<!-- ##### FUNCTION gdk_char_measure ##### -->
-<para>
-</para>
-
-@font: 
-@character: 
-@Returns: 
-
-
 <!-- ##### FUNCTION gdk_string_height ##### -->
 <para>
 </para>
@@ -522,15 +495,6 @@ are currently:
 @Returns: 
 
 
-<!-- ##### FUNCTION gdk_char_height ##### -->
-<para>
-</para>
-
-@font: 
-@character: 
-@Returns: 
-
-
 <!-- ##### TYPEDEF GdkWChar ##### -->
 <para>
 Specifies a wide character type, used to represent character codes.
index e205ab90630a998f21127a4f56f3e11ce07d70ae..1150d5295c1f4859fba895e383576cb8c4d0fe04 100644 (file)
@@ -321,14 +321,10 @@ gdk_font_unref
 #ifndef GDK_DISABLE_DEPRECATED
 gdk_font_load
 gdk_string_width
-gdk_char_width
-gdk_char_width_wc
 gdk_string_measure
 gdk_text_measure
-gdk_char_measure
 gdk_string_height
 gdk_text_height
-gdk_char_height
 gdk_string_extents
 #endif
 #endif
index 8d98a0016ead8b4c30123af1baf44f6dd44ccf5a..c46fdbd0edf3a0d5bb5ac2e6c3440556ba7b02dc 100644 (file)
@@ -107,45 +107,6 @@ gdk_string_width (GdkFont     *font,
   return gdk_text_width (font, string, _gdk_font_strlen (font, string));
 }
 
-/**
- * gdk_char_width:
- * @font: a #GdkFont
- * @character: the character to measure.
- * 
- * Determines the width of a given character.
- * 
- * Return value: the width of the character in pixels.
- *
- * Deprecated: 2.2: Use gdk_text_extents() instead.
- **/
-gint
-gdk_char_width (GdkFont *font,
-               gchar    character)
-{
-  g_return_val_if_fail (font != NULL, -1);
-
-  return gdk_text_width (font, &character, 1);
-}
-
-/**
- * gdk_char_width_wc:
- * @font: a #GdkFont
- * @character: the character to measure.
- * 
- * Determines the width of a given wide character. (Encoded
- * in the wide-character encoding of the current locale).
- * 
- * Return value: the width of the character in pixels.
- **/
-gint
-gdk_char_width_wc (GdkFont *font,
-                  GdkWChar character)
-{
-  g_return_val_if_fail (font != NULL, -1);
-
-  return gdk_text_width_wc (font, &character, 1);
-}
-
 /**
  * gdk_string_measure:
  * @font: a #GdkFont
@@ -226,27 +187,6 @@ gdk_text_measure (GdkFont     *font,
   return rbearing;
 }
 
-/**
- * gdk_char_measure:
- * @font: a #GdkFont
- * @character: the character to measure.
- * 
- * Determines the distance from the origin to the rightmost
- * portion of a character when drawn. This is not the
- * correct value for determining the origin of the next
- * portion when drawing text in multiple pieces. 
- * 
- * Return value: the right bearing of the character in pixels.
- **/
-gint
-gdk_char_measure (GdkFont *font,
-                  gchar    character)
-{
-  g_return_val_if_fail (font != NULL, -1);
-
-  return gdk_text_measure (font, &character, 1);
-}
-
 /**
  * gdk_string_height:
  * @font: a #GdkFont
@@ -296,29 +236,6 @@ gdk_text_height (GdkFont     *font,
   return ascent + descent;
 }
 
-/**
- * gdk_char_height:
- * @font: a #GdkFont
- * @character: the character to measure.
- * 
- * Determines the total height of a given character.
- * This value is not generally useful, because you cannot
- * determine how this total height will be drawn in
- * relation to the baseline. See gdk_text_extents().
- * 
- * Return value: the height of the character in pixels.
- *
- * Deprecated: 2.2: Use gdk_text_extents() instead.
- **/
-gint
-gdk_char_height (GdkFont *font,
-                gchar    character)
-{
-  g_return_val_if_fail (font != NULL, -1);
-
-  return gdk_text_height (font, &character, 1);
-}
-
 /**
  * gdk_font_from_description:
  * @font_desc: a #PangoFontDescription.
index a48a5c43a207e0e6b7f61e5022b6249a1d501eef..c2ed1db29814d4a019c07bea40b4a9575db4f07e 100644 (file)
@@ -84,24 +84,16 @@ gint         gdk_text_width     (GdkFont        *font,
 gint    gdk_text_width_wc  (GdkFont        *font,
                             const GdkWChar *text,
                             gint            text_length);
-gint    gdk_char_width     (GdkFont        *font,
-                            gchar           character);
-gint    gdk_char_width_wc  (GdkFont        *font,
-                            GdkWChar        character);
 gint    gdk_string_measure (GdkFont        *font,
                             const gchar    *string);
 gint    gdk_text_measure   (GdkFont        *font,
                             const gchar    *text,
                             gint            text_length);
-gint    gdk_char_measure   (GdkFont        *font,
-                            gchar           character);
 gint    gdk_string_height  (GdkFont        *font,
                             const gchar    *string);
 gint    gdk_text_height    (GdkFont        *font,
                             const gchar    *text,
                             gint            text_length);
-gint    gdk_char_height    (GdkFont        *font,
-                            gchar           character);
 
 void     gdk_text_extents   (GdkFont     *font,
                             const gchar *text,